/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.scene.domain;

import com.koron.common.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

@ApiModel(value = "职业健康体检", description = "职业健康体检实体类")
public class HealthCheck extends BaseEntity {

    public HealthCheck() {
        super();
    }

    public HealthCheck(String userCode, String userName) {
        super.setAddUser(userCode);
        super.setAddUserName(userName);
        super.setAddTime(new Date());
        super.setUpdateUser(userCode);
        super.setUpdateUserName(userName);
        super.setUpdateTime(super.getAddTime());
    }

    @ApiModelProperty(value = "水司code", name = "corpCode", required = true)
    private String corpCode;

    @ApiModelProperty(value = "水司名称", name = "corpName" )
    private String corpName;

    @ApiModelProperty(value = "人员code", name = "staffCode" )
    private String staffCode;

    @ApiModelProperty(value = "人员姓名", name = "staffName", required = true)
    private String staffName;

    @ApiModelProperty(value = "部门code", name = "deptCode" )
    private String deptCode;

    @ApiModelProperty(value = "部门名称", name = "deptName" )
    private String deptName;

    @ApiModelProperty(value = "岗位工种", name = "jobs" )
    private String jobs;

    @ApiModelProperty(value = "体检日期", name = "checkTime" )
    private Date checkTime;

    @ApiModelProperty(value = "体检日期，用于导出", name = "checkTimeStr" )
    private String checkTimeStr;

    @ApiModelProperty(value = "下次体检日期", name = "nextTime" )
    private Date nextTime;

    @ApiModelProperty(value = "下次体检日期，用于导出", name = "nextTime" )
    private String nextTimeStr;

    @ApiModelProperty(value = "是否有职业病，0职业病，1职业病禁忌症，2健康", name = "occupationalDisease" )
    private Integer occupationalDisease;

    @ApiModelProperty(value = "补充说明", name = "remark" )
    private String remark;

    @ApiModelProperty(value = "附件", name = "attachment" )
    private String attachment;

    @ApiModelProperty(value = "预览附件", name = "attachment" )
    private String previewAttachment;

    public String getPreviewAttachment() {
        return previewAttachment;
    }

    public void setPreviewAttachment(String previewAttachment) {
        this.previewAttachment = previewAttachment;
    }

    public String getCorpCode() {
        return corpCode;
    }

    public void setCorpCode(String corpCode) {
        this.corpCode = corpCode;
    }

    public String getStaffCode() {
        return staffCode;
    }

    public void setStaffCode(String staffCode) {
        this.staffCode = staffCode;
    }

    public String getStaffName() {
        return staffName;
    }

    public void setStaffName(String staffName) {
        this.staffName = staffName;
    }

    public String getDeptCode() {
        return deptCode;
    }

    public void setDeptCode(String deptCode) {
        this.deptCode = deptCode;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getJobs() {
        return jobs;
    }

    public void setJobs(String jobs) {
        this.jobs = jobs;
    }

    public Date getCheckTime() {
        return checkTime;
    }

    public void setCheckTime(Date checkTime) {
        this.checkTime = checkTime;
    }

    public Date getNextTime() {
        return nextTime;
    }

    public void setNextTime(Date nextTime) {
        this.nextTime = nextTime;
    }

    public Integer getOccupationalDisease() {
        return occupationalDisease;
    }

    public void setOccupationalDisease(Integer occupationalDisease) {
        this.occupationalDisease = occupationalDisease;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getAttachment() {
        return attachment;
    }

    public void setAttachment(String attachment) {
        this.attachment = attachment;
    }

    public String getCorpName() {
        return corpName;
    }

    public void setCorpName(String corpName) {
        this.corpName = corpName;
    }

    public String getCheckTimeStr() {
        return checkTimeStr;
    }

    public void setCheckTimeStr(String checkTimeStr) {
        this.checkTimeStr = checkTimeStr;
    }

    public String getNextTimeStr() {
        return nextTimeStr;
    }

    public void setNextTimeStr(String nextTimeStr) {
        this.nextTimeStr = nextTimeStr;
    }

    @Override
    public String toString() {
        return "HealthCheck{" +
                "corpCode='" + corpCode + '\'' +
                ", staffCode='" + staffCode + '\'' +
                ", staffName='" + staffName + '\'' +
                ", deptCode='" + deptCode + '\'' +
                ", deptName='" + deptName + '\'' +
                ", jobs='" + jobs + '\'' +
                ", checkTime=" + checkTime +
                ", nextTime=" + nextTime +
                ", occupationalDisease=" + occupationalDisease +
                ", remark='" + remark + '\'' +
                ", attachment='" + attachment + '\'' +
                ", previewAttachment='" + previewAttachment + '\'' +
                '}';
    }

}
